package com.example.mybatisdemo.service;

import com.example.mybatisdemo.mapper.UserMapper;
import com.example.mybatisdemo.model.UserInfo;
import org.apache.catalina.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author : niu niu
 * @version : 1.0.0
 * @date : 2023/4/23 16:32
 */
@Service
public class UserService {
    @Resource
    private UserMapper userMapper ;

    public UserInfo getUserById(Integer id){
        return userMapper.getUserById(id);
    }

    public List<UserInfo> getAll(){
        return userMapper.getAll();
    }
}
